{assign name="field" value=":sp_column_cate()"}
<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <title>{$field['wscate_title']} - {$site_title}</title>
    <link rel="stylesheet" type="text/css" href="__THEME__/assets/css/zui.min.css">
    <link rel="stylesheet" type="text/css" href="__THEME__/style.css">
    <link rel="stylesheet" type="text/css" href="__THEME__/assets/swiper/css/swiper.min.css">
    <script src="__THEME__/assets/js/jquery.js"></script>
    <script src="__THEME__/assets/js/zui.min.js"></script>
</head>

<body>
    {include file="cn/include/header" active="news" /}
    <div class="banner" style="background-image: url(__THEME__/images/banner.jpg);">
        <div>
            <div class="banner-content">
                <h2>{$field['wscate_title']}</h2>
                <p>专注企业官网建设，功能完备，操作方便，全平台优雅体验</p>
            </div>
        </div>
    </div>
    <div class="page-wrapper">
        <div class="container">
            <ul class="breadcrumb">
                <li><span class="breadcrumb-title">当前位置：</span></li>
                <li><a href="/">首页</a></li>
                <li><a href="{:url('/news')}">企业动态</a></li>
                {assign name="list" value=":sp_breadcrumb($field['wscate_id'])"}
                {volist name="list" id="vo"}
                <li><a href="{:url('/news/'.$vo['wscate_page'].'-'.$vo['wscate_id'])}">{$vo['wscate_name']}</a></li>
                {/volist}
                <li class="active">{$field['wscate_title']}</li>
            </ul>
            <div class="row">
                <div class="col-md-9 pull-right">
                    <section class="items items-hover">
                        <?php
                            $pageurl = $field['wscate_page'];
                            $cateid = $field['wscate_id'];
                            $options = array(
                                'pageurl' => '/news/' . $pageurl . '-' . $cateid . '-p[page]'
                            );
                            $list = sp_article(45, $cateid, 10, $options);
                        ?>
                        {volist name="list" id="vo"}
                        <?php 
                            $url = url('/news/'.$vo['wsarticle_id']); 
                            $img = sf_getimg($vo['wsarticle_image']);
                        ?>
                        <div class="item" id="article{$vo['wsarticle_id']}">
                            {if($img != '')}
                                <div class="media pull-right"> 
                                    <a href="{$url}"><img src="{$img}" title="{$vo['wsarticle_title']}" style="max-width:200px" class="thumbnail"></a> 
                                </div>
                            {/if}
                            <div class="item-heading">
                                <h4><a href="{$url}">{$vo['wsarticle_title']}</a></h4>
                            </div>
                            <div class="text-muted mb5">
                                <span title="发布时间" class="mr10">
                                    <i class="icon-time mr5"></i> {:date('Y-m-d', $vo['wsarticle_create_time'])}</span>
                                <span title="浏览量">
                                    <i class="icon-eye-open mr5"></i>&nbsp; {$vo['wsarticle_views']}</span>
                            </div>
                            <div class="item-content">
                                <div class="text text-muted">{$vo['wsarticle_desc']}</div>
                            </div>
                        </div>
                        {/volist}
                        {empty name="list"}
                        <div class="item">
                            <p class="nocontent">暂无内容</p>
                        </div>
                        {/empty}
                    </section>
                    <div class="clearfix">
                        {$list|raw}
                    </div>
                </div>
                <div class="col-md-3">
                    {include file="cn/include/menu" /}
                </div>
            </div>
        </div>
    </div>
    {include file="cn/include/footer" /}
    <script src="__THEME__/assets/swiper/js/swiper.min.js"></script>
    <script type="text/javascript">
    $(document).ready(function() {
        var swiper = new Swiper('.swiper-container', {
            navigation: {
                nextEl: '.swiper-button-next',
                prevEl: '.swiper-button-prev',
            },
        });
    });
    </script>
</body>

</html>